package com.qfedu.dao.impl;

import com.qfedu.dao.RecordDao;
import com.qfedu.pojo.History;

import java.util.List;

public class RecordDaoImpl extends BaseDao implements RecordDao {

    @Override
    public List<History> queryAllHistory(String idcode) {
        String sql="select * from bank_history where idcode=? order by time desc";
        return queryForList(History.class,sql,idcode);
    }

    @Override
    public List<History> queryOneHistory(String idcode, String status) {
        String sql="select * from bank_history where idcode= ? and status = ? order by time desc";
        return queryForList(History.class,sql,idcode,status);
    }



}
